
#ifndef _RT_THREAD_BOARD_CORE0_H_
#define _RT_THREAD_BOARD_CORE0_H_

#include <stdint.h>

#include <rtthread.h>

#include "fsl_common.h"
#include "fsl_reset.h"
#include "fsl_gpio.h"
#include "fsl_iocon.h"

#if defined(__CC_ARM) || defined(__CLANG_ARM)
extern int Image$$ARM_LIB_HEAP$$ZI$$Base;
#define HEAP_BEGIN  ((void *)&Image$$ARM_LIB_HEAP$$ZI$$Base)
#elif defined(__ICCARM__)
#pragma section="HEAP"
#define HEAP_BEGIN  (__segment_end("HEAP"))
#elif defined(__GNUC__)
extern int __HeapBase;
extern int __HeapLimit;
#define HEAP_BEGIN  ((void *)&__HeapBase)
#endif
#define HEAP_END							((void*)0x20032FFF)		// 固定内存池堆结束地址为分散加载文件对应

void rt_hw_board_init(void);

#endif
